package com.unbank.jersey;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component  
@Path("/myresource")
public class MyResource {

	@GET
	@Produces(MediaType.TEXT_PLAIN)
	public String getIt() {
		return "Got it!";
	}
	
	
	@GET
	@Produces(MediaType.TEXT_PLAIN)
	public String getHI(){
		return "HI";
	}
	
	@GET
	@Path("/mkyong")
	public Response savePayment() {
		String result = "HI";
		return Response.status(200).entity(result).build();
	}
}
